


public class Symbole {
	
	protected boolean terminal;
	protected String nom;
	protected char symbole;

	public Symbole(char symbole) {
		this.symbole= symbole;
		
	}
	public Symbole() {
				
	}
	

	public boolean EstTerminal() {
		return terminal;
	}
	
	
	
	public String getValeur() {
		return nom;
	}
	
	public boolean equals(Symbole S) {
		return this.nom.equals(S.nom);
	}
	
	
	
	public String toString(){
		return ""+symbole;
	}
	@Override
	public int hashCode() {
	
		final int prime = 31;
		int result = 1;
		result = prime * result + symbole;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
	
		if (this == obj)
		return true;
		if (obj == null)
		return false;
		if (getClass() != obj.getClass())
		return false;
		Symbole other = (Symbole) obj;
		if (symbole != other.symbole)
		return false;
		return true;
	}
	/*public static void add(Symbole s){
	Symbole.add(s);
	
	}*/
	
}